package com.qb.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qb.pojo.Blog;
import com.qb.pojo.Evaluate;
import com.qb.pojo.User;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class EvaAndUnameAndBtitle extends Evaluate {
    private Integer eid;

    private String econtent;

    private Integer bFk;

    private Integer uFk;

    @DateTimeFormat(pattern = "yyyy-MM-dd")//入参
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")//出参
    private Date etime;

    private String uname;
    private String btitle;

    private User user;
    private Blog blog;

    @Override
    public String toString() {
        return "EvaAndUnameAndBtitle{" +
                "eid=" + eid +
                ", econtent='" + econtent + '\'' +
                ", bFk=" + bFk +
                ", uFk=" + uFk +
                ", etime=" + etime +
                ", uname='" + uname + '\'' +
                ", btitle='" + btitle + '\'' +
                ", user=" + user +
                ", blog=" + blog +
                '}';
    }

    @Override
    public Integer getEid() {
        return eid;
    }

    @Override
    public void setEid(Integer eid) {
        this.eid = eid;
    }

    @Override
    public String getEcontent() {
        return econtent;
    }

    @Override
    public void setEcontent(String econtent) {
        this.econtent = econtent;
    }

    @Override
    public Integer getbFk() {
        return bFk;
    }

    @Override
    public void setbFk(Integer bFk) {
        this.bFk = bFk;
    }

    @Override
    public Integer getuFk() {
        return uFk;
    }

    @Override
    public void setuFk(Integer uFk) {
        this.uFk = uFk;
    }

    @Override
    public Date getEtime() {
        return etime;
    }

    @Override
    public void setEtime(Date etime) {
        this.etime = etime;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getBtitle() {
        return btitle;
    }

    public void setBtitle(String btitle) {
        this.btitle = btitle;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }
}
